﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nature
{
    public enum FilterDirection
    {
        In,
        Out
    }



    public class Filter<T>
    {
        public T Value { get; set;  }

        public FilterDirection Direction { get; set; }

        public bool IsEmpty
        {
            get
            {
                return typeof(T).IsClass && Value == null;
            }
        }
    }

    public class ComboFilter<T> : Collection<T>
    {
        public FilterDirection Direction { get; set; }
    }
}
